//
//  SideViewController.m
//  LCSJieMianApp
//
//  Created by 千锋 on 15/12/29.
//  Copyright (c) 2015年 1000phone. All rights reserved.
//

#import "SideViewController.h"

@interface SideViewController ()<UIWebViewDelegate>


@property (strong, nonatomic) UIWebView *webView;
@end

@implementation SideViewController

- (void)viewDidLoad {
    [super viewDidLoad];
   
    self.title = self.RequestTitle;
    _webView = [[UIWebView alloc] init];
    _webView.delegate = self;
    _webView.frame = self.view.bounds;
    _webView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
    _webView.scalesPageToFit = YES;
    [self.view addSubview:_webView];
    
}

- (void)viewDidAppear:(BOOL)animated
{
     self.navigationController.navigationBar.hidden = NO;
    [super viewDidAppear:animated];
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:self.RequestUrl]];
    
    [_webView loadRequest:request];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)viewWillDisappear:(BOOL)animated
{
    self.navigationController.navigationBar.hidden = YES;
    [super viewWillDisappear:animated];
}
@end
